// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_REPLACE_PRODUCT
// * CreateDate    : 2012-1-9 20:48:19
// * Creater       : CodeSmith
// * LastChangeDate: 2012-1-9 20:48:19
// * LastChanger   : 2012-1-9 20:48:19
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class RepReplaceProductTable : TableInfo
    {
        public const string C_TableName = "REP_REPLACE_PRODUCT";

        public const string C_REPLACE_PRODUCT_ID = "REPLACE_PRODUCT_ID";
        public const string C_CHECK_INFO_ITEM_ID = "CHECK_INFO_ITEM_ID";
        public const string C_MATERIAL_PRODUCT_ID = "MATERIAL_PRODUCT_ID";
        public const string C_UNIT_QTY = "UNIT_QTY";
        public const string C_TOTAL_QTY = "TOTAL_QTY";
        public const string C_UNIT_PRICE = "UNIT_PRICE";
        public const string C_TOTAL_PRICE = "TOTAL_PRICE";
        public const string C_REPAIR_FUNCTION = "REPAIR_FUNCTION";
        public const string C_REMARK = "REMARK";

        public RepReplaceProductTable()
        {
            _tableName = "REP_REPLACE_PRODUCT";
        }

        protected static RepReplaceProductTable _current;
        public static RepReplaceProductTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new RepReplaceProductTable();

            _current.Add(C_REPLACE_PRODUCT_ID, new ColumnInfo(C_REPLACE_PRODUCT_ID, "ReplaceProductId", true, typeof(string)));
            _current.Add(C_CHECK_INFO_ITEM_ID, new ColumnInfo(C_CHECK_INFO_ITEM_ID, "CheckInfoItemId", false, typeof(string)));
            _current.Add(C_MATERIAL_PRODUCT_ID, new ColumnInfo(C_MATERIAL_PRODUCT_ID, "MaterialProductId", false, typeof(string)));
            _current.Add(C_UNIT_QTY, new ColumnInfo(C_UNIT_QTY, "UnitQty", false, typeof(decimal)));
            _current.Add(C_TOTAL_QTY, new ColumnInfo(C_TOTAL_QTY, "TotalQty", false, typeof(decimal)));
            _current.Add(C_UNIT_PRICE, new ColumnInfo(C_UNIT_PRICE, "UnitPrice", false, typeof(decimal)));
            _current.Add(C_TOTAL_PRICE, new ColumnInfo(C_TOTAL_PRICE, "TotalPrice", false, typeof(decimal)));
            _current.Add(C_REPAIR_FUNCTION, new ColumnInfo(C_REPAIR_FUNCTION, "RepairFunction", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));

        }

        public ColumnInfo REPLACE_PRODUCT_ID
        {
            get { return this[C_REPLACE_PRODUCT_ID]; }
        }

        public ColumnInfo CHECK_INFO_ITEM_ID
        {
            get { return this[C_CHECK_INFO_ITEM_ID]; }
        }

        public ColumnInfo MATERIAL_PRODUCT_ID
        {
            get { return this[C_MATERIAL_PRODUCT_ID]; }
        }

        public ColumnInfo UNIT_QTY
        {
            get { return this[C_UNIT_QTY]; }
        }

        public ColumnInfo TOTAL_QTY
        {
            get { return this[C_TOTAL_QTY]; }
        }

        public ColumnInfo UNIT_PRICE
        {
            get { return this[C_UNIT_PRICE]; }
        }

        public ColumnInfo TOTAL_PRICE
        {
            get { return this[C_TOTAL_PRICE]; }
        }

        public ColumnInfo REPAIR_FUNCTION
        {
            get { return this[C_REPAIR_FUNCTION]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }



    }
}

